const btns = [
  // 删除
  (h, params, vm) => {
    return h('Poptip', {
      props: {
        confirm: true,
        transfer: true,
        title: vm.$t('delete-tips')
      },
      on: {
        'on-ok': () => {
          vm.handleRemove([params.row], vm)
        }
      }
    }, [
      h('HandleBtn', {
        props: {
          title: vm.$t('delete'),
          iconType: 'md-trash',
          iconColor: '#ed4014',
          access: 'admin,sys:rbac:deleteRoleResource'
        }
      })
    ])
  }
]

export default btns
